package com.effectiv.gooruda.rest.service.api;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Path("/data")
public abstract class DataStorageService {
	
	@Path("/{collection}")
	@POST
	public abstract String save(@PathParam("collection") String collection, String data);
	
	@Path("/findAll/{collection}/{query}")
	@GET
	public abstract List<String> findAll(@PathParam("collection") String collection,@PathParam("query")  String query);
	
	
	
}
